package file_api

import "mime/multipart"

type UploadFIleQuery struct {
	FileId string                 `json:"file_id" binding:"required" form:"file_id"`
	Files  []multipart.FileHeader `json:"files" binding:"required" form:"files"`
}

type ReNameFileQuery struct {
	FileId string `json:"file_id" binding:"required" form:"file_id"`
	Name   string `json:"name" binding:"required" form:"name"`
}

type ListFileQuery struct {
	FileID  uint   `json:"file_id" binding:"required" form:"file_id"`
	OrderBy string `json:"order_by"  form:"order_by"`
	Type    string `json:"type"  form:"type"`
	IsDir   int64  `json:"is_dir" binding:"required" form:"is_dir"`
}

type SearchFileQuery struct {
	Desc string `json:"desc" binding:"required" form:"desc"`
}

type DeleteFileQuery struct {
	Id uint `json:"id" binding:"required" form:"id"`
}
